package api_way

import (
	"github.com/gin-gonic/gin"
	"zg4zk3/api-way/apihandler"
)

func LoadRouter(router *gin.Engine) {
	router = gin.Default()

	// 简单的路由组: v1
	{
		v1 := router.Group("/v1")
		v1.POST("/list", apihandler.List)
		v1.POST("/show", apihandler.Show)
		v1.POST("/upload", apihandler.Upload)
	}

	router.Run(":8080")
}
